<?php

use yii\helpers\Html;


/* @var $this yii\web\View */
/* @var $model app\models\Dept */

$this->title = '新增部门';
$this->params['breadcrumbs'][] = ['label' => '部门', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="dept-create">
    
    <?php
    $menusArray = $menus;

    foreach ($menusArray as $value) {
        $array['id'] = $value['id'];
        $array['name'] = $value['title_show'];
        $menusArr[] = $array;
    }
    ?>


    <?= $this->render('_form', [
        'model' => $model,
          'menus' => $menusArr,
    ]) ?>

</div>
